package com.dy.design_pattern_study.observer_mode.dome2_decoupling.notifier_code;

import com.dy.design_pattern_study.observer_mode.dome2_decoupling.observer_code.Observer;

/**
 * @CreateBy zhangdingyi
 * @Date 2023-04-03
 * @Content 通知类接口
 */
public interface Subject {
    //通知名单
    void Attach(Observer observer);
    //清除名单
    void Detach(Observer observer);
    //通知方法
    void Notify();

    //通知消息
    String sendMsg();
}


